import {get, post, del, put} from "@/apis/http/request";
import {BookingSharePosterConfig} from "@/apis/model/booking/BookingSharePosterConfigModel";
import {StorageConfig} from "@/apis/model/system/StorageConfigModel";

/**
* 得到列表
* @param params
*/
export const getBookingSharePosterConfigList = (params: any) => get("/bookingSharePosterConfig/list", params)

/**
* 得到分页列表
* @param params
*/
export const bookingSharePosterConfigPage = (params: any) => post("/bookingSharePosterConfig/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteBookingSharePosterConfigById = (id: number) => del("/bookingSharePosterConfig/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertBookingSharePosterConfig = (param: BookingSharePosterConfig) => post("/bookingSharePosterConfig", param)

/**
* 更新数据
* @param param
*/
export const updateBookingSharePosterConfig = (param: BookingSharePosterConfig) => put("/bookingSharePosterConfig", param)


export const updateBookingSharePosterSwitch = (param: BookingSharePosterConfig) => post('/bookingSharePosterConfig/switchStatus',param)